7. Exception
…/­core/­XMLProcesser.php222
6. XMLProcesser error
…/­core/­XMLProcesser.php27
5. XMLProcesser process
…/­core/­Site.php87
4. Site processXMLData
…/­core/­Site.php64
3. Site loadData
…/­core/­Site.php35
2. Site __construct
…/­core/­Application.php220
1. Application getSite
…/­core/­Application.php51
0. Application handle
/­var/­www/­amaia/­www_front/­index.php28

Exception

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
Exception thrown with message "XML parse error: "The file does not exist"" Stacktrace: #7 Exception in /var/www/amaia/lib/core/XMLProcesser.php:222 #6 XMLProcesser:error in /var/www/amaia/lib/core/XMLProcesser.php:27 #5 XMLProcesser:process in /var/www/amaia/lib/core/Site.php:87 #4 Site:processXMLData in /var/www/amaia/lib/core/Site.php:64 #3 Site:loadData in /var/www/amaia/lib/core/Site.php:35 #2 Site:__construct in /var/www/amaia/lib/core/Application.php:220 #1 Application:getSite in /var/www/amaia/lib/core/Application.php:51 #0 Application:handle in /var/www/amaia/www_front/index.php:28

XML parse error: "The file does not exist"

/var/www/amaia/lib/core/XMLProcesser.php
	/**
	 * Throws a parse error.
	 *
	 * @param string $message The error message
	 */
	protected function error($message)
	{
		throw new Exception('XML parse error: "' . $message . '"');
	}
}
/var/www/amaia/lib/core/XMLProcesser.php
	 * Processes an XML file.
	 *
	 * @param string $path The path of the XML file
	 */
	public function process($path)
	{
		if (!file_exists($path)) {
			$this->error('The file does not exist');
		}
 
/var/www/amaia/lib/core/Site.php
	/**
	 * Processes the site data from an XML file.
	 */
	private function processXMLData()
	{
		$processer = new XMLProcesser_Site();
		$processer->process($this->getPath() . 'site.xml');

		// Make sure that the ID defined in the XML is the same as the site's ID!
/var/www/amaia/lib/core/Site.php
		if (!$_CONFIG['debug'] && $cachedData = Cache::get('Site::' . $this->id)) {
			$this->config['https'] = false;
			$this->config  = $cachedData['config'];
			$this->layout  = $cachedData['layout'];
			$this->modules = $cachedData['modules'];
		} else {
			// Process data from the site's XML file
			$processedData = $this->processXMLData();

			// Store data in cache for later use
/var/www/amaia/lib/core/Site.php
	 * @param string $id The site's ID
	 */
	public function __construct($id, $setAsGlobal = true)
	{
		$this->id = (string) $id;

		// Load the site's data
		$this->loadData();

		// Load the site's group data if needed
/var/www/amaia/lib/core/Application.php
	private function getSite($domain)
	{
		global $_CONFIG;
 
		// If we're in debug mode, we must access a site using its ID as a subdomain!
		if (isset($_CONFIG['debug']) && $_CONFIG['debug']) {
			if (ends_with($domain, '.' . AMAIA_DEBUG_DOMAIN)) {
				$site = new Site(str_replace('.' . AMAIA_DEBUG_DOMAIN, '', $domain));
			} else {
				throw new Exception('Debug mode is active, so you must access your site using the following domain: {siteID}.' . AMAIA_DEBUG_DOMAIN);
/var/www/amaia/lib/core/Application.php
	{
		Logger::sql('', 'debug');
		Logger::sql('----------] ' . $request->domain . $request->path . ' [----------', 'debug');
 
		try {
 
			// Get the site matching the request's domain
			$site = $this->getSite($request->domain);
 
			// Apply the URL rewriting rules to the request
/var/www/amaia/www_front/index.php
 */
 
require('../config.php');
require(AMAIA_LIB . 'functions.php');
require(AMAIA_ROOT . 'autoload.php');
 
$app = new Application();
$app->handle(Request::buildFromHTTP(Request::TYPE_FRONT));
 
empty
empty
empty
empty
empty
Key Value
USER www-data
HOME /var/www
FCGI_ROLE RESPONDER
QUERY_STRING
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /contact
DOCUMENT_URI /index.php
DOCUMENT_ROOT /var/www/amaia/www_front
SERVER_PROTOCOL HTTP/1.1
HTTPS on
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.2.8
REMOTE_ADDR 35.171.164.77
REMOTE_PORT 56630
SERVER_ADDR 37.187.3.47
SERVER_PORT 443
SERVER_NAME _
REDIRECT_STATUS 200
SCRIPT_FILENAME /var/www/amaia/www_front/index.php
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_IF_MODIFIED_SINCE Fri, 19 Apr 2024 09:11:21 GMT
HTTP_ACCEPT_ENCODING br,gzip
HTTP_HOST dambaline_fr.amaia.at
HTTP_CONNECTION Keep-Alive
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1728143306.3625
REQUEST_TIME 1728143306
empty
0. Whoops\Handler\PrettyPageHandler